home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Christina Milan AM to PM
/
Christina Milan - AM to PM.iso
/
christin.dir
/
00015_Script_Rollover Member Change
< prev
next >
Wrap
Text File
|
2001-08-09
|
1KB
|
62 lines
-- DESCRIPTION --
on getBehaviorDescription me
return "¼
ROLLOVER MEMBER CHANGE"&RETURN&RETURN&"¼
Change the sprite's cast member when the mouse rolls over the sprite."&¼
RETURN&RETURN&"¼
PARAMETERS:"&RETURN&"¼
* Rollover Cast Member"
end
on getBehaviorTooltip me
return "¼
Use with graphic sprites."&RETURN&RETURN&"¼
Swap a sprite's cast member on rollover."
end getBehaviorTooltip
-- HISTORY --
-- 22 October 1998, written for the D7 Behaviors Palette by James Newton
property spriteNum
property mySprite
property myStandardMember
property myRollovermember
on beginSprite me
mySprite = sprite (me.spriteNum)
myStandardMember = mySprite.member
end
on mouseEnter me
mySprite.member = myRolloverMember
end mouseEnter
on mouseLeave me
mySprite.member = myStandardMember
end mouseLeave
on getPropertyDescriptionList
if the currentSpriteNum = 0 then exit
theMember = sprite(the currentSpriteNum).member
theMemberNumber = theMember.number
return ¼
[ ¼
#myRolloverMember: ¼
[ ¼
#comment: "Display which member on rollover?", ¼
#format: #graphic, ¼
#default: member (theMemberNumber + 1) ¼
] ¼
]
end getPropertyDescriptionList